<?php

require_once('inc.config.php');

$useTemplate   = 'sellhouse_list.html';

$page = new QuickSkin ($useTemplate );

template_ini($page);

//搜索条件
$condition = array(
	"price" => $_REQUEST["s_price"],
	"square" => $_REQUEST["s_square"],
	"floor" => $_REQUEST["s_floor"],
	"plaza"  => $_REQUEST["s_plaza"],
	"decoration" => $_REQUEST["s_decoration"],
	"style" => $_REQUEST["s_style"],
	"prop" => $_REQUEST["s_prop"],
	"lx" => $_REQUEST["s_lx"],
	"area" => $_REQUEST["s_area"],
	"ispublic" => 1
);

if($_REQUEST["s_type"]==""||!isset($_REQUEST["s_type"])){$_REQUEST["s_type"]=1;}
if($_REQUEST["s_page"]==""||!isset($_REQUEST["s_page"])){$_REQUEST["s_page"]=1;}

$page->assign("indexcls" , "bfont");

$goldlist = $myAgent->getGoldenList();
$result = $myHouse->getSearchSellList($condition , $_REQUEST["s_type"] , $_REQUEST["s_page"]);
$totalnum = $myHouse->getSearchNum($condition);
//$totalnum = $myHouse->getSearchPage($condition , __search_shouse_num__);
$tp = ceil($totalnum/__search_shouse_num__);
//$pl = $myHouse->getSearchPlaza();
$clist = $myHouse->getCollection();

$page->assign("goldlist" , $goldlist);

$page->assign("selllist" , $result);
$page->assign("total" , $totalnum);
$page->assign("totalpage" ,$tp);
//$page->assign("plazalist" , $pl);
$page->assign("clist" , $clist);
$page->assign($_REQUEST);
$page->assign("indexcls" , "nv_current");
$page->output();


ob_end_flush();

?>